/*
 *  @author GeneZhao   
 *  @date   2015-04-07 15:54:42
 *  @desc   
 */
Ext.define('kmsApp.view.main.Main', {
    extend: 'Ext.container.Container',
    requires: [
        'kmsApp.view.main.MainController',
        'kmsApp.view.main.MainModel'
    ],
    uses: [
        'kmsApp.view.main.region.Top',
        'kmsApp.view.main.region.Left',
        'kmsApp.view.main.region.Bottom',
        'kmsApp.view.main.region.Center',
        'kmsApp.view.main.ContentPanel'
    ],

    xtype: 'app-main',

    controller: 'main',
    viewModel: {
        type: 'main'
    },

    initComponent: function() {
        Ext.setGlyphFontFamily('FontAwesome');
        this.callParent();
    },

    layout: {
        type: 'border'
    },

    items: [{
        xtype: 'maintop',
        region: 'north'
    }, {
        xtype: 'mainmenuregion',
        region: 'west',
        width: 220,
        collapsible: true,
        split: true
    }, {
        region: 'center',
        // xtype: 'maincenter'
        xtype:'app-contentpanel'
    },{
        xtype:'mainbottom',
        region:'south'
    }]
});
